﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListNewsUserControl.ascx.cs"
    Inherits="CSCV.Group1.NewsAnnouncement.ListNews.ListNewsUserControl" %>
<%@ Import Namespace="Microsoft.SharePoint.WebControls" %>
<%@ Import Namespace="System.Data" %>
<div>
    <div style="clear: both">
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
            <ProgressTemplate>
                <asp:Label ID="lblProgress" runat="server" Text="Loading...." Width="200px" BackColor="#FFFF80"
                    ForeColor="Maroon" Font-Bold="True" Style="padding: 5px"></asp:Label>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
            <ContentTemplate>
                <SharePoint:SPGridView ID="spGridView" runat="server" AutoGenerateColumns="false"
                    ShowHeader="False"  >
                    <AlternatingRowStyle CssClass="ms-alternating" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <img alt="" src="<%#Eval("ImageLink")%>" width="70px" height="60px" />
                            </ItemTemplate>
                            <FooterStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                            <ItemStyle HorizontalAlign="Center" Width="70px" />
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <div style="width: 300px">
                                    <div style="clear: both">
                                        <a href="#">
                                            <%#Eval("Title")%></a>
                                    </div>
                                    <div style="clear: both; text-decoration: none !important">
                                        <p>
                                            <%#Eval("Description") %>
                                        </p>
                                    </div>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <SelectedRowStyle CssClass="ms-selectednav" Font-Bold="True" />
                </SharePoint:SPGridView>

            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</div>
